package ${entityPackageName};

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xtck.ha.common.core.annotation.Excel;
import com.xtck.ha.common.core.annotation.IgnoreProperty;
import com.xtck.ha.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.xtck.ha.common.core.annotation.TableName;
import com.xtck.ha.common.core.annotation.ClassKey;
import java.math.BigDecimal;
import java.util.Date;

/**
* @ClassName: ${entityName}
* @Description: ${tableDes!}实体类
* @author ${authorName}
* @date ${currentTime}
*/
@Data
@ApiModel(description = "${tableDes!}")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="${tabInfo.tableName}")
public class ${entityName} extends BaseEntity {
        @IgnoreProperty
        private static final long serialVersionUID = 1L;
<#--属性遍历-->
<#list afterExcludeProps as column>
        /**
        * ${column.fieldComment!}
        */
    <#if column.columnName == "id">
        @ClassKey
        @JsonSerialize(using = ToStringSerializer.class)
        @ApiModelProperty("主键")
    <#else>
        @ApiModelProperty("${column.fieldComment!}")
        @Excel(name = "${column.fieldComment!}")
    </#if>
        private ${column.javaType} ${column.caseAttrName};
</#list>

}
